<style>
tr.dateHead{
	background:#ccc;
	font-style:italic;
	font-size:10px;
	text-align:center;
	color:#555;
}
tr.sum{
	font-weight:bolder;
	background:#ccc;
}
.error{
	color:#fff;
	background-color:#f00;
	font-weight:bolder;
}
</style>
<div class="area">
	{{$comment_start_ni}}
	
	<div style="float:left;">
		<h3>Izdavanje</h3>
		<strong class="label">Radnik:</strong><span class="value">{{$radnik}}</span><br clear="all" />
		<strong class="label">Relacija:</strong><span class="value">{{$relacija}}</span><br clear="all" />
		<strong class="label">Vozilo:</strong><span class="value">{{$vozilo}}</span><br clear="all" />
		<strong class="label">Datum:</strong><span class="value">{{$datum}}</span><br clear="all" />
	</div>
	<div style="float:left; margin-left:10px; padding-left:10px; border-left:1px dotted #aaa;">
		<h3>Ulaz</h3>
		{{$comment_start_nu}}
		<table>
			<tr align="center" class="head">
				<td>od</td>
				<td>do</td>
				<td>polazak</td>
				<td>dolazak</td>
				<td>prešao</td>
				<td>stanje</td>
				<td>gorivo</td>
				<td>drugi troškovi</td>
			</tr>
			{{%loop start id}}
			{{$date}}
			<tr>
				<td>{{$relacija_od}}</td>
				<td>{{$relacija_do}}</td>
				<td align="center">{{$time_out}}</td>
				<td align="center">{{$time_in}}</td>
				<td align="center">{{$predjeno}}</td>
				<td>{{$stanje}}</td>
				<td>{{$gorivo}}</td>
				<td>{{$other}}</td>
			</tr>
			{{%loop end}}
		</table>
		<br />
		<table>
			<tr class="head" align="center">
				<td>datum</td>
				<td>vreme u vožnji</td>
				<td>vreme u stajanju</td>
				<td>pređeno [km]</td>
			</tr>
			{{%loop start sum_date}}
			<tr>
				<td align="center">{{$sum_date}}</td>
				<td align="center">{{$sum_time_drive}}</td>
				<td align="center">{{$sum_time_stay}}</td>
				<td align="center">{{$sum_km}}&nbsp;<span class="error" title="po stanju brojila">{{$sum_km_brojilo}}</span></td>
			</tr>
			{{%loop end}}
			<tr class="sum">
				<td align="right">UKUPNO:</td>
				<td align="center">{{$sum_ukupno_drive}}</td>
				<td align="center">{{$sum_ukupno_stay}}</td>
				<td align="center">{{$sum_ukupno_km}}</td>
			</tr>
		</table>
		{{$comment_end_nu}}
	</div>
	{{$comment_end_ni}}
</div>